//    Copyright (C) Kherty.  All rights reserved.
using OpenLS.Core.Serialization;

namespace OpenLS.Spreadsheet.Data
{
    public class QueryTableDeletedField: IOfficeXmlSerializable
    {
        private string _name;

        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }


        #region IOfficeXmlSerializable Members

        void IOfficeXmlSerializable.ReadXml(ReadContext context)
        {
            using (ReadContext c = context.Read("deletedField"))
            {
                Name = c.GetString("name");
            }
        }

        void IOfficeXmlSerializable.WriteXml(WriteContext context)
        {
            using (WriteContext c = context.Write("deletedField"))
            {
                c.SetString("name", Name);
            }
        }

        #endregion
    }
}
